package com.colorfruit.framework.model.vo;

/**
 * @author xiehf
 * @date 2018/12/13 22:26
 * @concat 370693739@qq.com
 **/
public enum RespCode {

    SUCCESS(1000, "success."),

    ERROR(1001, "error."),

    PARA_ERROR(1002, "parameters error.");

    private Integer code;

    private String message;

    RespCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
